package com.chengyu.core.model;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

public class XxlJobInfo implements Serializable {
    private Integer id;

    @ApiModelProperty(value = "执行器主键ID")
    private Integer jobGroup;

    private String jobDesc;

    private Date addTime;

    private Date updateTime;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "报警邮件")
    private String alarmEmail;

    @ApiModelProperty(value = "调度类型")
    private String scheduleType;

    @ApiModelProperty(value = "调度配置，值含义取决于调度类型")
    private String scheduleConf;

    @ApiModelProperty(value = "调度过期策略")
    private String misfireStrategy;

    @ApiModelProperty(value = "执行器路由策略")
    private String executorRouteStrategy;

    @ApiModelProperty(value = "执行器任务handler")
    private String executorHandler;

    @ApiModelProperty(value = "执行器任务参数")
    private String executorParam;

    @ApiModelProperty(value = "阻塞处理策略")
    private String executorBlockStrategy;

    @ApiModelProperty(value = "任务执行超时时间，单位秒")
    private Integer executorTimeout;

    @ApiModelProperty(value = "失败重试次数")
    private Integer executorFailRetryCount;

    @ApiModelProperty(value = "GLUE类型")
    private String glueType;

    @ApiModelProperty(value = "GLUE备注")
    private String glueRemark;

    @ApiModelProperty(value = "GLUE更新时间")
    private Date glueUpdatetime;

    @ApiModelProperty(value = "子任务ID，多个逗号分隔")
    private String childJobid;

    @ApiModelProperty(value = "调度状态：0-停止，1-运行")
    private Byte triggerStatus;

    @ApiModelProperty(value = "上次调度时间")
    private Long triggerLastTime;

    @ApiModelProperty(value = "下次调度时间")
    private Long triggerNextTime;

    @ApiModelProperty(value = "GLUE源代码")
    private String glueSource;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getJobGroup() {
        return jobGroup;
    }

    public void setJobGroup(Integer jobGroup) {
        this.jobGroup = jobGroup;
    }

    public String getJobDesc() {
        return jobDesc;
    }

    public void setJobDesc(String jobDesc) {
        this.jobDesc = jobDesc;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getAlarmEmail() {
        return alarmEmail;
    }

    public void setAlarmEmail(String alarmEmail) {
        this.alarmEmail = alarmEmail;
    }

    public String getScheduleType() {
        return scheduleType;
    }

    public void setScheduleType(String scheduleType) {
        this.scheduleType = scheduleType;
    }

    public String getScheduleConf() {
        return scheduleConf;
    }

    public void setScheduleConf(String scheduleConf) {
        this.scheduleConf = scheduleConf;
    }

    public String getMisfireStrategy() {
        return misfireStrategy;
    }

    public void setMisfireStrategy(String misfireStrategy) {
        this.misfireStrategy = misfireStrategy;
    }

    public String getExecutorRouteStrategy() {
        return executorRouteStrategy;
    }

    public void setExecutorRouteStrategy(String executorRouteStrategy) {
        this.executorRouteStrategy = executorRouteStrategy;
    }

    public String getExecutorHandler() {
        return executorHandler;
    }

    public void setExecutorHandler(String executorHandler) {
        this.executorHandler = executorHandler;
    }

    public String getExecutorParam() {
        return executorParam;
    }

    public void setExecutorParam(String executorParam) {
        this.executorParam = executorParam;
    }

    public String getExecutorBlockStrategy() {
        return executorBlockStrategy;
    }

    public void setExecutorBlockStrategy(String executorBlockStrategy) {
        this.executorBlockStrategy = executorBlockStrategy;
    }

    public Integer getExecutorTimeout() {
        return executorTimeout;
    }

    public void setExecutorTimeout(Integer executorTimeout) {
        this.executorTimeout = executorTimeout;
    }

    public Integer getExecutorFailRetryCount() {
        return executorFailRetryCount;
    }

    public void setExecutorFailRetryCount(Integer executorFailRetryCount) {
        this.executorFailRetryCount = executorFailRetryCount;
    }

    public String getGlueType() {
        return glueType;
    }

    public void setGlueType(String glueType) {
        this.glueType = glueType;
    }

    public String getGlueRemark() {
        return glueRemark;
    }

    public void setGlueRemark(String glueRemark) {
        this.glueRemark = glueRemark;
    }

    public Date getGlueUpdatetime() {
        return glueUpdatetime;
    }

    public void setGlueUpdatetime(Date glueUpdatetime) {
        this.glueUpdatetime = glueUpdatetime;
    }

    public String getChildJobid() {
        return childJobid;
    }

    public void setChildJobid(String childJobid) {
        this.childJobid = childJobid;
    }

    public Byte getTriggerStatus() {
        return triggerStatus;
    }

    public void setTriggerStatus(Byte triggerStatus) {
        this.triggerStatus = triggerStatus;
    }

    public Long getTriggerLastTime() {
        return triggerLastTime;
    }

    public void setTriggerLastTime(Long triggerLastTime) {
        this.triggerLastTime = triggerLastTime;
    }

    public Long getTriggerNextTime() {
        return triggerNextTime;
    }

    public void setTriggerNextTime(Long triggerNextTime) {
        this.triggerNextTime = triggerNextTime;
    }

    public String getGlueSource() {
        return glueSource;
    }

    public void setGlueSource(String glueSource) {
        this.glueSource = glueSource;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", jobGroup=").append(jobGroup);
        sb.append(", jobDesc=").append(jobDesc);
        sb.append(", addTime=").append(addTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", author=").append(author);
        sb.append(", alarmEmail=").append(alarmEmail);
        sb.append(", scheduleType=").append(scheduleType);
        sb.append(", scheduleConf=").append(scheduleConf);
        sb.append(", misfireStrategy=").append(misfireStrategy);
        sb.append(", executorRouteStrategy=").append(executorRouteStrategy);
        sb.append(", executorHandler=").append(executorHandler);
        sb.append(", executorParam=").append(executorParam);
        sb.append(", executorBlockStrategy=").append(executorBlockStrategy);
        sb.append(", executorTimeout=").append(executorTimeout);
        sb.append(", executorFailRetryCount=").append(executorFailRetryCount);
        sb.append(", glueType=").append(glueType);
        sb.append(", glueRemark=").append(glueRemark);
        sb.append(", glueUpdatetime=").append(glueUpdatetime);
        sb.append(", childJobid=").append(childJobid);
        sb.append(", triggerStatus=").append(triggerStatus);
        sb.append(", triggerLastTime=").append(triggerLastTime);
        sb.append(", triggerNextTime=").append(triggerNextTime);
        sb.append(", glueSource=").append(glueSource);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}